@extends('layouts.app')

@section('content')
<style>

</style>
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Dashboard</div>

                <div class="card-body">
                    @if (session('status'))
                    <div class="alert alert-success" role="alert">
                        {{ session('status') }}
                    </div>
                    @endif
                    <table class="table">
                        <thead>
                            <tr>
                                <th scope="col">#</th>
                                <th scope="col">游戏</th>
                                <th scope="col">错误信息</th>
                                <th scope="col">时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach($errors as $error)
                            <tr>
                                <th scope="row">{{$error->id}}</th>
                                <td><a href="/edit/{{$error->game_id}}">{{ $error->game_id}} </a></td>
                                <td>{{ $error->data}}</td>
                                <td>{{ $error->created_at}}</td>
                            </tr>
                            @endforeach
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
